//2:定义一个数组存放15名同学的成绩，成绩范围是0-100，如果输入错误，
// 则重新输入。最后输出整个数组
public class zy314_320 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double[] arr = new double[15];
        int count = 0;
        for (; ; ) {
            System.out.println("Please input the No." + (count + 1) + "students'scores!");
            double score = in.nextDouble();
            if (score < 0 || score > 100) {
                System.out.println("Input error!Please input again!");
            } else {
                arr[count] = score;
                count++;
            }
            if (count == arr.length) {
                break;
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}